home *** CD-ROM | disk | FTP | other *** search
- class JewelButton extends MovieClip
- {
- var mPosX = 0;
- var mPosY = 0;
- function JewelButton()
- {
- super();
- }
- function onLoad()
- {
- }
- function setPosition(x, y)
- {
- this.mPosX = x;
- this.mPosY = y;
- }
- function getX()
- {
- return this.mPosX;
- }
- function getY()
- {
- return this.mPosY;
- }
- function onRollOver()
- {
- this._parent._parent._parent.mouseHover(this.mPosX,this.mPosY);
- }
- function onRelease()
- {
- this._parent._parent._parent.mouseClicked(this.mPosX,this.mPosY);
- }
- }
-